package com.wangce.entity;

import java.util.List;

/**
 * ClassName: Menu
 * Description:
 * date: 2021/11/29 9:57
 *
 * @author 凡人
 * @since JDK 1.8
 */
public class Menu {
    private Integer id;
    private String text;
    private String href;
    private Integer pid;
    private List<Menu> nodes;

    @Override
    public String toString() {
        return "Menu{" +
                "id=" + id +
                ", text='" + text + '\'' +
                ", href='" + href + '\'' +
                ", pid=" + pid +
                ", nodes=" + nodes +
                '}';
    }

    public Menu() {
    }

    public Menu(Integer id, String text, String href, Integer pid, List<Menu> nodes) {
        this.id = id;
        this.text = text;
        this.href = href;
        this.pid = pid;
        this.nodes = nodes;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public List<Menu> getNodes() {
        return nodes;
    }

    public void setNodes(List<Menu> nodes) {
        this.nodes = nodes;
    }
}
